package com.uxhao.orderservice.mapper;

import com.uxhao.orderservice.entity.dashboard.DayDataVo;
import com.uxhao.orderservice.entity.dashboard.OrderAndAmountVo;
import com.uxhao.orderservice.entity.TOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 订单 Mapper 接口
 * </p>
 *
 * @author uxhao
 * @since 2022/01/22
 */
public interface TOrderMapper extends BaseMapper<TOrder> {

    OrderAndAmountVo countAllOrderAndAmount();

    List<DayDataVo> countCurrentOrderAndAmount();

    List<DayDataVo> countLastOrderAndAmount();
}
